<?php   
        $form = $this->form;
        $form->setAttribute('action', $this->url(NULL, array(
            'controller' => 'Speaker',
            'action' => 'process',
            'id' => $this->id,
        )));
        $form->prepare();
?>

<div class="container">
	<div class="row">
		<div class="col-md-10">
			<div class="panel panel-default">
				<div class="panel-heading">
					<h3 class="panel-title">Add or Edit Speaker</h3>
				</div>

				<div class="panel-body">
				<?php echo $this->form()->openTag($form); ?>
				<?php $this->form->get('ID')->setValue($this->id);
				      echo $this->formelement($form->get('ID'));
				?>
				
                    <div class="form-group">
						<label class="col-md-2 control-label"><?php echo $this->formlabel($form->get('TITLE'));?></label>
						<div class="col-md-10">
                            <?php   echo $this->formElement($form->get('TITLE'));?>
                            <span class="errormsgform"><?php   echo $this->formElementErrors($form->get('TITLE')); ?></span>
                        </div>
					</div>
                    				
                    <div class="form-group">
						<label class="col-md-2 control-label"><?php echo $this->formlabel($form->get('FIRST_NAME'));?></label>
						<div class="col-md-10">
                            <?php   echo $this->formElement($form->get('FIRST_NAME'));?>
                            <span class="errormsgform"><?php   echo $this->formElementErrors($form->get('FIRST_NAME')); ?></span>
                        </div>
					</div>
					
					<div class="form-group">
						<label class="col-md-2 control-label"><?php echo $this->formlabel($form->get('MIDDLE_NAME'));?></label>
						<div class="col-md-10">
                            <?php   echo $this->formElement($form->get('MIDDLE_NAME')); ?>
                            <span class="errormsgform"><?php   echo $this->formElementErrors($form->get('MIDDLE_NAME')); ?></span>
                        </div>
					</div>
					
					<div class="form-group">
						<label class="col-md-2 control-label"><?php echo $this->formlabel($form->get('LAST_NAME'));?></label>
						<div class="col-md-10">
                            <?php   echo $this->formElement($form->get('LAST_NAME'));?>
                            <span class="errormsgform"><?php   echo $this->formElementErrors($form->get('LAST_NAME')); ?></span>
                        </div>
					</div>
					
					<div class="form-group">
						<label class="col-md-2 control-label"><?php echo $this->formlabel($form->get('GENDER'));?></label>
						<div class="col-md-10">
                            <?php   echo $this->formElement($form->get('GENDER')); ?>
                            <span class="errormsgform"><?php   echo $this->formElementErrors($form->get('GENDER')); ?></span>
                        </div>
					</div>
					
					<div class="form-group">
						<label class="col-md-2 control-label"><?php echo $this->formlabel($form->get('REMARK'));?></label>
						<div class="col-md-10">
                            <?php   echo $this->formElement($form->get('REMARK')); ?>
                            <span class="errormsgform"><?php   echo $this->formElementErrors($form->get('REMARK')); ?></span>
                        </div>
					</div>
					
					<div class="form-group">
						<label class="col-md-2 control-label"></label>
						<div class="col-md-10">
                            <?php echo $this->formElement($form->get('BTNSAVE')); ?>
                            <?php //echo $this->formElement($form->get('BTNCLEAR')); ?>
                            <div class="btn btn-default"><a href="<?php echo $this->url('resources',array('controller'=>'Speaker'));?>" style="text-decoration: none;color:#413C3C">Cancel</a></div>
                        </div>
					</div>                  
                    
                <?php echo $this->form()->closeTag();?>
                </div>
			</div>
		</div>
	</div>
</div>
